package src.Thread1;

/**
 * Created by 58 on 2016/3/10.
 */
public class Main {
    public static void main(String[] args) {
//        new PrintThread("+").run();
//        new PrintThread("-").run();  当启动的是run的时候，就是在主线程中进行

        PrintThread printThread = new PrintThread("+");
        printThread.start();
        System.out.println("i am beginning...");
        try {
            printThread.sleep(3000l);
        } catch (InterruptedException e) {
        }
        System.out.println("i am ending");
    }
}
